﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="AnyOffice.general.Event.show.index" %>

<%@ Reference Page="~/general/index.aspx" %>
<%@Register TagPrefix="Webdiver" Namespace="Webdiver" Assembly="AspnetPager" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title></title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<script>
function open_event(event_id)
{
 URL="../read_event.aspx?event_id="+event_id;
 myleft=(screen.availWidth-500)/2;
 mytop=150
 mywidth=600;
 myheight=500;
 window.open(URL,"read_event","height="+myheight+",width="+mywidth+",status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,top="+mytop+",left="+myleft+",resizable=yes");
}
function delete_Event(event_id,page)
{
 msg='确认要删除该项大事记么？';
 if(window.confirm(msg))
 {
  URL="delete.aspx?event_id=" + event_id + "&page=" + page;
  window.location=URL;
 }
}
		</script>
	</HEAD>
	<body class="bodycolor" topmargin="5">
		<form id="Form1" method="post" runat="server">
        <div class="main_div">
			<table class="small" cellSpacing="0" cellPadding="3" width="100%" border="0">
				<tr>
					<td class="tab_ti" width="40%">
					信息沟通</td>
					<td width="20%">
						<asp:Literal id="litNavCount" runat="server"></asp:Literal>
					</td>
					<td width="40%">
						<asp:Literal id="litNavPager" runat="server"></asp:Literal>
					</td>
				</tr>
			</table>			
			<asp:panel id="pnlMain" runat="server">
			<BR>
						<asp:Repeater id="rptEvent" runat="server">
					<HeaderTemplate>
						<table border="0" cellspacing="0" width="100%" class="tab_pub" cellpadding="0">
							<tr>
								<td nowrap class="TableHeader" align="center" width="40%">标题</td>								
								<td nowrap class="TableHeader" align="center">发布人</td>
								<td nowrap class="TableHeader" align="center">发布时间</td>
							</tr>
					</HeaderTemplate>
					<ItemTemplate>
						<tr class="TableLine1">
							<td>
								<a href="javascript:open_event('<%#Eval("EventId")%>');"><%#Eval("Subject")%></a>
							</td>
							<td nowrap align="center"><u title="部门：<%#Eval("DeptName")%>" style="cursor:hand"><%#Eval("UserName")%></u></td>
							<td nowrap align="center"><%#Eval("AddTime")%></td>							
						</tr>
					</ItemTemplate>
					<AlternatingItemTemplate>
					<tr class="TableLine2">
							<td>
								<a href="javascript:open_event('<%#Eval("EventId")%>');"><%#Eval("Subject")%></a>
							</td>
							<td nowrap align="center"><u title="部门：<%#Eval("DeptName")%>" style="cursor:hand"><%#Eval("UserName")%></u></td>
							<td nowrap align="center"><%#Eval("AddTime")%></td>							
						</tr>
					</AlternatingItemTemplate>
					<FooterTemplate>
						</table>
					</FooterTemplate>
				</asp:Repeater>
				<div class="div_cotr">
							<Webdiver:AspNetPager id="AspNetPager1" runat="server" CssClass="small1" InputBoxClass="SmallInput" SubmitButtonClass="bnt05"
								Font-Size="10pt" OnPageChanged="ChangePage" HorizontalAlign="Right" ShowCustomInfoSection="left" ShowInputBox="Always"
								SubmitButtonText="转 到" NumericButtonTextFormatString="[{0}]" UrlPaging="True" CustomInfoSectionWidth="35%"
								PagingButtonSpacing="0" ImagePath="../images" ButtonImageNameExtension="n" CpiButtonImageNameExtension="r"
								DisabledButtonImageNameExtension="g" PageSize="10" AlwaysShow="True"></Webdiver:AspNetPager>
				</div>
			</asp:panel><asp:literal id="litMessage" runat="server"></asp:literal>
            </div>
		</form>
	</body>
</HTML>
